'''
一个圆形钻石？
'''
import turtle
import math
import time


def draw(x, y, r):
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()
    turtle.circle(r)


def join(x, y, ex, ey):
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()
    turtle.goto(ex, ey)


rid = 200  # 圆形半径
# turtle.tracer(0)
turtle.setup(width=1000, height=1000)
turtle.speed(100)
xlist = []
ylist = []

for i in range(0, 30):
    xlist.append(rid * math.cos(math.pi / 15 * i));
    ylist.append(rid * math.sin(math.pi / 15 * i));
    draw(0, (i + 1) * -(rid / 30), (i + 1) * (rid / 30));
for i in range(0, xlist.__len__()):
    for j in range(0, xlist.__len__()):
        join(xlist[i], ylist[i], xlist[j], ylist[j])

turtle.done()
